#include "cyuan.h"
#include "ui_cyuan.h"
#include "QPushButton"

cyuan::cyuan(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::cyuan)
{
    ui->setupUi(this);
    connect(ui->cyuan_offButton,&QPushButton::clicked,this,&cyuan::close);
}
void cyuan::setindex(int index){
    ui->label->setText(QString("碳源%1 CO2排放量：").arg(index));
    ui->label_2->setText(QString("碳源%1 经度：").arg(index));
    ui->label_3->setText(QString("碳源%1 纬度：").arg(index));
}
cyuan::~cyuan()
{
    delete ui;
}
